package org.jeecg.modules.app.v1.applet.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.ApiLogin;
import org.jeecg.config.aspct.ApiCheckDataAuth;
import org.jeecg.modules.app.v1.shop.entity.ApiListShopEntity;
import org.jeecg.modules.aspect.ApiLoginAspct;
import org.jeecg.modules.power.shop.service.IYlShopService;
import org.jeecg.modules.system.entity.SysUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @Description: 小程序门店接口控制层
* @Author: jeecg-boot
* @Date:   2024-07-13
* @Version: V1.0
*/
@Api(tags="测试接口")
@RestController
@RequestMapping("/v1/api/test")
@Slf4j
@RequiredArgsConstructor
public class ApiTestController {

    /**
     * 分页列表查询
     * @return
     */
    @ApiOperation(value="测试1", notes="测试1")
    @ApiOperationSupport(order = 1)
    @GetMapping(value = "/test1")
    @ApiCheckDataAuth
    public Result<?> myShop(String groupId,String flag,HttpServletRequest request) {
        SysUser bd = (SysUser)request.getAttribute(ApiLoginAspct.SYS_USER);
        return Result.OK(bd);
    }

}
